gtkstack: fix null pointer dereference
authorHugo Lefeuvre <hle@debian.org>
Wed, 26 Sep 2018 20:59:59 +0000 (16:59 -0400)
committerHugo Lefeuvre <hle@debian.org>
Thu, 27 Sep 2018 13:53:22 +0000 (09:53 -0400)
commit44655932c4be04cfb6010929df9831e9c04a8ce1
treed5a8187d53bb221d18e7fc8c5507438cd4a22018
parenta28c7e88397af713b71544258b3d9a69d107229a
gtkstack: fix null pointer dereference

The gtk_stack_snapshot_slide() function dereferences the
last_visible_child pointer without proper != NULL ckeck. This might
result in NULL pointer dereference and crash if last_visible_child is
invalid.

Add a != NULL check before dereferencing the pointer.
gtk/gtkstack.c